import Box from "@/components/Box";
import HeaderBack from "@/components/HeaderBack";
import { getTranslations } from "next-intl/server";
import { ReactNode } from "react";
export const generateMetadata = async () => {
    const t = await getTranslations("titles");
    return {
        title: t("cashback"),
    };
};
export default async function Layout({
    children,
    params: { locale },
}: {
    children: ReactNode;
    params: { locale: string };
    cashbackInfo: ReactNode;
    // cashbackTable: ReactNode;
}) {
    const t = await getTranslations("cashback");
    return (
        <>
            <HeaderBack showBack={true} className={"bg-[#0d1933]"} title={t("cashbackTitle")} />
            <main className={"main-header bg-[#1f2225] text-[#000]"}>
                <Box>{children}</Box>
            </main>
        </>
    );
}
